// Copyright © 青岛研锦网络科技有限公司, All Rights Reserved.
import Vue from 'vue'
import Router from 'vue-router'
import actuallyMonitor from '@/pages/actuallyMonitor'
import commonServer from '@/pages/commonServer'
import detailPage from '@/pages/detailPage'
Vue.use(Router)

export default new Router({
  routes: [
    {
      path: '/',
      redirect:'/commonServer'
    },
    {
      path:'/actuallyMonitor',
      name: 'actuallyMonitor',
      component: actuallyMonitor
    },
    {
      path:'/commonServer',
      name:'commonServer',
      component:commonServer
    },
    {
      path:'/detailPage',
      name:'detailPage',
      component:detailPage
    },
    {
      path:'/companyHome',
      name:'companyHome',
      component: () => import(/* webpackChunkName: "LSD.bighome" */ '@/pages/indexs/home.vue'),
      children: [
        {
          path: '/companyIndex',
          name: 'companyIndex',
          component: () => import(/* webpackChunkName: "LSD.bighome" */ '@/pages/indexs/index.vue'),
        }
      ]
    },
    {
      path:'/dMap',
      name:'dMap',
      component: () => import(/* webpackChunkName: "LSD.bighome" */ '@/pages/tianditu.vue'),
    }
  ]
})
